/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 14785
 * Date: 2025-07-07
 * Time: 23:24
 */
public class test {
    public static int max2(int a,int b){
        int max=a;
        if(max>b)return a;
        else return b;
    }
    public static int max3(int a,int b,int c){
        int max=max2(a,b);
        int ret=max2(max,c);
        return ret;
    }

    public static int add(int a,int b){
        return a+b;
    }
    public static double add(double a,double b,double c){
        return a+b+c;
    }


    public static int max(int a,int b){
        int max=a;
        if(max>b)return a;
        else return b;
    }
    public static double max(double a,double b,double c){
        double max=a;
        if (max<b)
            max=b;
        if (max<c)
            max=c;
        return max;
    }



    public static void main3(String[] args) {
        int ret1=max(3,4);
        double ret2=max(2.2,3.14,9.9);
        System.out.println(ret1);
        System.out.println(ret2);

    }
    public static void main2(String[] args) {
        int ret1=add(3,4);
        double ret2=add(1.1,2.2,3.3);
        System.out.println(ret1);
        System.out.println(ret2);
    }
    public static void main1(String[] args) {
        int ret=max3(3,4,5);
        System.out.println(ret);

    }
}
